set a thief to catch a thief

Translations
À malin, malin et demi
Definitions
This phrase suggests that to effectively deal with a dishonest person, one may need to employ someone who understands their methods or mindset, implying that only someone with similar traits can recognize and counteract the behavior of a thief.
Words
thief

noun
voleur
catch

verb
capturer
set

verb
mettre